            <% content_for :sidebar do -%>
            <div class="side_box">
                <ul class="menu">
                    <li><%= image_tag("email_go.png", :align=>"absmiddle")%> <%= link_to '去发件箱', sendbox_messages_path %></li>
                    <li><%= image_tag("email_go.png", :align=>"absmiddle")%> <%= link_to '去收件箱', messages_path %></li>
                </ul>
            </div>
	    <% end -%>
            
            <% content_for :navbar do -%>
            <div class="box">
                <img class="map" align="absmiddle" alt="You are here" src="/images/map.png"/>
                当前位置 
                » <%= link_to "您这儿", :controller =>'browse', :action => 'index' %> 
                » 消息
            </div>
            <% end -%>
            <div class="box">
                <table width="100%">
                    <tr>
                        <td valign="top" width="75">
                            <%= render :partial => 'shared/userThumbImage', :object => @user%>
                        </td>
                        <td valign="top">
                            来自: 
                            <% if @user.login == 'admin' -%>
                                您这儿系统邮件
                            <% else -%>
                                <%= @user.display_name %>
                            <% end -%>
                            <br/>
                            寄给: <%= @touser.display_name %><br/>
                            时间: <%= local_date @message.created_at %><br/><br/>
                            话题: <%= @message.title%><br/><br/>
                            <%= textilize(@message.content)%>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        <% if @user != current_user && @user.login != 'admin' -%>
                            <% form_remote_tag(:update => "update_div", :url => {:action => 'reply'} ) do -%>
                                <input id="user_id" name="user[id]" type="hidden" value="<%=@user.login%>"/>
                                <input id="message_id" name="message[id]" type="hidden" value="<%=@message.id%>"/>
                                <%= submit_tag '回复' %>
                            <% end -%> 
                        <% else -%>
                            &nbsp;
                        <% end -%>
                        </td>
                        <td>
                            <% form_tag( message_path(@message), :method => :delete ) do -%>
                                <%= submit_tag '删除' %>
                            <% end -%>
                        </td>
                    </tr>
                </table>
                <% if @user != current_user -%>
                    <div id="update_div">
                    </div>
                <% end -%>
            </div>

